home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / 0utils.lha / 0Utils / SRun.doc < prev    next >
Text File  |  1995-09-05  |  2KB  |  77 lines

  1.  
  2.  
  3.  
  4.     NAME
  5.     SRun
  6.  
  7.     SYNOPSIS
  8.     SRun -  run a program synchroneously  - Requires v37
  9.  
  10.     INPUTS
  11.     "/F/A"
  12.  
  13.     DESCRIPTION
  14.  
  15.     Run a command synchroneously (usable e.g. to
  16.     redirect a script)
  17.  
  18.     This simple program does not more than
  19.     call 'SystemTags' with its arguments.
  20.     U wanna know the purpose of such a program?
  21.     Have U ever tried to redirect the output
  22.     of a Dos script? No chance!
  23.     > echo "echo Hallo" | execute > t:t in:
  24.     "Hallo"
  25.     in fact execute does _not_ take any respect
  26.     of any I/O redirections (it seems like this
  27.     in caused by the fact, that "Execute" itself
  28.     is part of the Shell). The solution would
  29.     have been usage of "Run" since that command
  30.     spawns a new process, whose stdio channels
  31.     can be redirected. But what happenes, if we
  32.     can not use a asynchroneous process? (e.g.
  33.     cause we wanna use the normal console input)
  34.     Now, that is the purpose of "SRun".
  35.  
  36.      RESULT
  37.     STDOUT: the output of the 'command' execution.
  38.     RC:    returnvalue of SystemTags() or >=10
  39.     
  40.  
  41.     
  42.         
  43.  
  44.     NOTES
  45.     * CLI - only
  46.  
  47.     * should compile with SAS-C
  48.     
  49.  
  50.     SRun* does currently ignore ReadArgs, this is due
  51.     to a bug(?) in readargs that removes some whitespace
  52.     and quotes from argstring even with /F option
  53.     
  54.  
  55.     BUGS
  56.  
  57.  
  58.     EXAMPLES
  59.  
  60.     >SRun echo hallo
  61.     "hallo"
  62.     
  63.  
  64.     HISTORY
  65.  
  66.     20-02-95 b_noll created
  67.     21-02-95 b_noll added version/format-prefix/offset
  68.     20-03-95 b_noll added args diagnostics
  69.     09-04-95 b_noll shortened the file: arg Parsing dropped, removed NP_tags
  70.     19-08-95 b_noll created .data file
  71.     
  72.  
  73.     AUTHOR
  74.     Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
  75.     noll@student.uni-kl.de
  76.  
  77.